<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #gy {
            color: green
        }

        .y1 {
            color: yellow
        }

        body > p {
            background-color: red
        }

        input[type="text"] {
            background-color: red
        }

        input[type="password"] {
            background-color: red
        }

        div > p {
            color: yellow;
        }

        body > div > div > p {
            color: pink

        }

        div > div > p {
            background-color: yellow

        }

        div > div > div {
            background-color: yellow
        }

        a:link {
            color: green
        }

        a:visited {
            color: red
        }

        a:hover {
            color: yellow
        }

        a:active {
            color: pink
        }
    </style>
</head>
<body>
<ul>
    <li>刘备</li>
    <li id="gy">关羽</li>
    <li class="y1">张飞</li>
</ul>
<p>香蕉</p>
<p class="y1">苹果</p>
<input type="text" placeholder="用户名">
<input type="password" placeholder="密码">
<div>
    <p>p1</p>
    <div><p>p2</p></div>
    <div>
        <div>p3</div>
    </div>
</div>
<a href="http://www.tedu.com">达内官网</a>
</body>
</html>